import Vue from 'vue'
import App from './App.vue'

Vue.config.productionTip = false
//三级联动组件---全局组件
import TypeNew from "@/components/TypeNew";
import Carousel from "@/components/Carousel";
import Pagination from "@/components/Pagination";
import '@/mock/mockServe'
import 'swiper/css/swiper.css'
//第一个参数: 全局组件的名称, 第二个参数: 哪个组件
Vue.component(TypeNew.name, TypeNew)
Vue.component(Carousel.name, Carousel)
Vue.component(Pagination.name, Pagination)

//引入路由
import router from "./router";

import store from "@/store";


new Vue({
    beforeCreate() {
        Vue.prototype.$bus = this;
    },
    render: h => h(App),
    //注册路由
    router,
    store
}).$mount('#app')
